import Vue from "vue";
import {Message} from "element-ui";

export const MyMessage = {
    methods: {
        messageSuccess(message) {
            Message({
                iconClass: 'el-icon-success',
                message: message,
                customClass: "focus-message"
            });
        },
        messageError(message) {
            Message({
                iconClass: 'el-icon-error',
                message: message,
                customClass: "focus-message"
            });
        }
    }
}
Vue.mixin(MyMessage)
